package com.lipi.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lipi.common.utils.PageUtils;
import com.lipi.mall.product.entity.AttrGroupEntity;
import com.lipi.mall.product.vo.AttrGroupWithAttrsVO;
import com.lipi.mall.product.vo.SkuItemVO;
import com.lipi.mall.product.vo.SpuItemAttrGroupVO;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author hecy
 * @email kuanih200@163.com
 * @date 2021-06-14 16:02:24
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long categoryId);


    List<AttrGroupWithAttrsVO> getAttrGroupWithAttrsByCatelogId(Long catelogId);

    /**
     * 获取spuId下对应的所有基础属性分组及分组下的属性值
     * @param spuId
     * @param catalogId
     * @return
     */
    List<SpuItemAttrGroupVO> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

